package cn.bin758.h5game.module.game.controller.admin.record.vo;

import lombok.*;
import java.util.*;
import io.swagger.annotations.*;

import com.alibaba.excel.annotation.ExcelProperty;
import cn.bin758.h5game.framework.excel.core.annotations.DictFormat;
import cn.bin758.h5game.framework.excel.core.convert.DictConvert;


/**
 * 对局信息 Excel VO
 *
 * @author bin758
 */
@Data
public class RecordExcelVO {

    @ExcelProperty("对局ID")
    private Long id;

    @ExcelProperty("玩家1昵称")
    private String name1;

    @ExcelProperty("玩家2昵称")
    private String name2;

    @ExcelProperty("开始时间")
    private Date start;

    @ExcelProperty("结束时间")
    private Date end;

    @ExcelProperty("赢方id")
    private Long win;

    @ExcelProperty("步数")
    private Integer steps;

    @ExcelProperty("游戏数据id")
    private String data;

    @ExcelProperty(value = "对局类型", converter = DictConvert.class)
    @DictFormat("game_record_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private String type;

}
